﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SocialFront.Entities;
using SocialFront.Providers.Relationship;

namespace SocialFront.Web.usercontrols.Membership
{
    public partial class ListImagesILikeByMember : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            IList<Member> members = RelationshipProvider.Provider.GetMemberRelatedToCurrentNode();
            IList<Entities.Image> images = RelationshipProvider.Provider.GetImagesILikeByMember(members[0].Id);
            imagesList.DataSource = images.Take(6);
            imagesList.DataBind();
        }
    }
}